<script type="text/javascript">
    var childWindow;
    function toQzoneLogin()
    {
        childWindow = window.open("qqLogin.htm","TencentLogin","width=450,height=320,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");
    } 
    
    function closeChildWindow()
    {
	    	//location.href='<?=SITE_URL?>user_home.htm';
	        childWindow.close();
    }
</script>
<div class="publicTop">
	<ul class="publicTopCenter">
    	<!--没登录显示的Li-->
	   <?if (empty($_SESSION['user'])){?>
        <li class="NoVip">
            <form  method="post" name="Form1">
            	<span>用户名</span>
            	<input type="text" name="email" id="login_email" value="<?=isset($login_user_name)?$login_user_name:""?>" placeholder="填写有效邮箱" />
            	<span>密码</span>
            		<input  type="password" name="password"  id="login_password"  placeholder="4-16位字母、数字"  />
            		<input type="button" value="登录" class="noSub" id="login_submit" id2="1" />
            		<a href="<?=SITE_URL?>register.htm" target="_blank">注册</a>
            		<a href="<?=SITE_URL?>forgotPassword.htm">忘记密码</a>
            </form>
        </li>
        <?}else{?>
       <li class="YesVIP">
        	<span>HI !</span><a href="<?=SITE_URL?>user_home.htm">
			<?=HttpServerManager::getUserServer()->getUserName();?>
            </a><a href="<?=SITE_URL?>user_home.htm">[会员中心]</a>
        	<a href="<?=SITE_URL?>user_financing.htm" style="background:#fff; color:#0D6DB7;">[卡充值]</a>
        	<a href="<?=SITE_URL?>user_quit.htm">[退出]</a>
        </li>
		<?}?>        
        <li>
	<!-- WPA Button Begin -->
		<script charset="utf-8" type="text/javascript" src="http://wpa.b.qq.com/cgi/wpa.php?key=XzkzODAwMjA2NV8xMTEwODBfNDAwNjMyNTY1Nl8"></script>
	<!-- WPA Button End --> 
		<?if(empty($_SESSION['user'])){?>
		<a  onClick="javaScript:toQzoneLogin();"><img src="<?=SITE_URL?>user/images/Conn7.png" width="63" height="24"/></a>
		<?}?>       
        <a href="http://weibo.com/100class"><img src="<?=SITE_URL?>user/images/sinIco.png" width="26" height="20" />关注我们</a>
        <em><img src="<?=SITE_URL?>user/images/phoneIco.png" width="25" height="20" />400-632-5656</em></li>
	</ul>
</div>
<div class="publicNavbg">
	<ul class="publicNav">
    	<li class="Logo"><a href="<?=SITE_URL?>index.htm"><img src="<?=SITE_URL?>user/images/logo.jpg" width="335" height="65" /></a></li>
        <li class="publicNavWES">
            <?
      		foreach ($top['nav'] as $v){
			$url = SITE_URL.$v['url'];
			if($v['link_type']==MODULE_LINK){
				$url =SITE_URL.$v['url'].'_'.$v['id'].'.htm';
			}
			?>
	        <div><a href="<?=$url?>" <?if(isset($v['active'])&&$v['active']=='on'){?> class="hov" <?}?> target="_blank"><?=$v['title']?></a>
	             		<dl>
	             	<?foreach($top['child_nav'][$v['id']] as $child_v){
						$childurl = SITE_URL.$child_v['url'];
						if($child_v['link_type']==MODULE_LINK){
							$childurl =SITE_URL.$child_v['url'].'_'.$child_v['id'].'.htm';
						}
						if(trim($v['title'])!=trim($child_v['title'])){
					?>
                	<a href="<?=$childurl?>"  target="_blank"><?=$child_v['title']?></a>
                	<?}}?>
                </dl>
	        </div>
			<?
			 }
			?>		        
        </li>
    </ul>
</div>
<input type="hidden" name="site_url" id="site_url"  value="<?=SITE_URL?>">

